home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 2
/
Gold Medal Software Volume 2 (Gold Medal) (1994).iso
/
bbsutils
/
mplus350.arj
/
350-TXT.ARJ
/
RBBSQWK.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-01-24
|
2KB
|
45 lines
:
: RBBSQWK.BAT (Optional) - Called by Mail Manager, to prepare QWK packet for
: downloading.
:
: If you allow your users to choose archive
: methods, Mail Manager will have already created
: the .QWK by the time this batch file is executed,
: and you will not NEED this file at all.
:
: If you have additional files that you would like
: to include in your users QWK packets, you can
: modify this file to add them to the packet.
:
: First command line parameter is base file name
: Second command line parameter is archive method ZIP, ARJ, LZH, or ARC
: Third command line parameter is node number (not used).
:
: Last updated for distribution 12/04/93 - Makai Software
:
: Compress the .QWK packet if it doesn't already exist.
: ---------------------------------------------------------------------------
if exist %1.qwk GOTO END
if (%2)==(ZIP) pkzip -m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
if (%2)==(ARJ) arj m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
if (%2)==(LZH) lha a -m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
if (%2)==(ARC) GOTO ARC
GOTO END
:ARC
: ---------------------------------------------------------------------------
: The old PKARC archiver does not allow you to specify files on the command
: line that don't physically exist. So for this archive method, we'll do a
: check against each individual component of the package prior to attempting
: to archive it. The "-oc" in the command line specifies "old compatibility",
: the "Crunch" method.
: ----------------------------------------------------------------------------
if exist *.dat pkarc -oc m %1.qwk *.dat
if exist *.ndx pkarc -oc m %1.qwk *.ndx
if exist ???log pkarc -oc m %1.qwk ???log
if exist door.id pkarc -oc m %1.qwk door.id
if exist news pkarc -oc m %1.qwk news
if exist blt-*.* pkarc -oc m %1.qwk blt-*.*
:END